import authRequest from "@/api/backend/base/auth.js";

export function rolePermission(roleId){
    return authRequest.get("/sysrole/permissions/"+roleId)
}

export function roleRoute(roleId){
    return authRequest.get("/sysrole/routes/"+roleId)
}


export function assignPermissions(assignVo){
    return authRequest.post("/sysrole/permission/assign/"+assignVo.roleId,assignVo)
}


export function unassignPermissions(unassignVo){
    return authRequest.post("/sysrole/permission/unassign/"+unassignVo.roleId,unassignVo)
}

export function assignRoutes(assignVo){
    return authRequest.post("/sysrole/route/assign/"+assignVo.roleId,assignVo)
}

export function unassignRoutes(unassignVo){
    return authRequest.post("/sysrole/route/unassign/"+unassignVo.roleId,unassignVo)
}